﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Sustainalytics.Synchronization.Interface;

namespace Sustainalytics.Governance.Synchronization.Tests
{
    [TestClass]
    public class GovernanceComputationSyncStepLaunchTest
    {
        [TestMethod]
        public void TestMethod1()
        {
            var syncContext = new SyncContext
            {
                LastSyncTime = new DateTime(2010, 1, 1),
                GAConnectionStrings = new Dictionary<string, string>
                {
                    {"ClientDW", "mongodb://localhost:27017/ClientDW_A"},
                    {"GovernanceDW", "mongodb://localhost:27017/GovernanceDW_A"},
                    {"ClientPlatform", "mongodb://localhost:27017/ClientPlatform"},
                    {"GovernanceInputFile", "mongodb://localhost:27017/GovernanceInputFile" },
                },
                PreviousChanges = new List<ChangedElement>(),
                Report = new ConcurrentBag<string>()
            };


            var governanceSyncStep = new GovernanceComputationSyncStep();
            governanceSyncStep.Start(syncContext);
        }
    }
}
